package com.xdf.docmanagementsystem.service.impl;

import com.xdf.docmanagementsystem.common.util.IOUtil;
import com.xdf.docmanagementsystem.service.ViewFile;

import java.io.File;
import java.io.IOException;
import java.io.OutputStream;

/**
 * @program: doc-management-system
 * @description: 预览其他
 * @author: Zhang
 * @create: 2020-06-26 17:05
 **/
public class ViewOtherFileImpl implements ViewFile {
    @Override
    public void view(OutputStream os, File file) throws IOException {
        IOUtil.writeFile(file, os);
    }
}
